if status is-interactive
    alias sudo="doas"

    # overkill kitty scrollback clearing
    if [ $TERM = xterm-kitty ]
        alias clear="printf '\033[2J\033[3J\033[1;1H'"
    end

    switch $TERM
        case xterm-kitty
            alias icat="kitty +icat"
        case foot
            alias icat="chafa"
        case xterm-256color
            alias icat="chafa"
    end

    if [ -x /usr/bin/lsd ]
        alias lsd="/usr/bin/lsd --icon never"
        alias ls="lsd"
        alias ll="lsd -alF"
        alias la="lsd -A"
        alias l="lsd -F"
    else
        alias ll="ls -alF"
        alias la="ls -A"
        alias l="ls -CF"
    end

    alias edit=$EDITOR
    alias ff="fastfetch"

    alias py="python3"
    alias kilall="killall"
end
